-- GENERATED SPELL FOR [Blackwing Taskmaster] --


function spell0_12458(pUnit, Event) --@Healing Circle,Self--
pUnit:FullCastSpellOnTarget(22458,pUnit)
pUnit:RegisterEvent('Sorts_12458', 3000, 1)
end

function spell1_12458(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(17289,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12458', 537, 1)
end

function Sorts_12458(pUnit, Event)
local choix_sorts_12458 = math.random(0, 1)
if choix_sorts_12458 == 0 then
pUnit:RegisterEvent('spell0_12458', 1, 1)
end
if choix_sorts_12458 == 1 then
pUnit:RegisterEvent('spell1_12458', 1, 1)
end
end

function mob12458_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12458', math.random(1500, 3000), 1)
end

function mob12458_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12458_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12458_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12458, 1, 'mob12458_Action')
RegisterUnitEvent(12458, 2, 'mob12458_Leave')
RegisterUnitEvent(12458, 3, 'mob12458_Kill')
RegisterUnitEvent(12458, 4, 'mob12458_Die')
